<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>

    <div id="kuai">
        插值表达式：{{Math.abs(-2)}}<br>
        取值标签：<span v-text="Math.abs(-2)"></span><br/>
        =============================<br/>

        {{title.length<=4 ? title : title.substring(0,4)+"..."}}

        <hr/>
        v-text:<span v-text="temp"></span><br/>
        v-html:<span v-html="temp"></span>


    </div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var heima = new Vue({
        el: "#kuai",
        data:{
            title:"手机",
            temp:"<div style='color: #78ff6c'>我是div</div>"
        }
    });
</script>


</body>
</html>